package com.rmt.www.action;

import com.opensymphony.xwork2.ActionSupport;
import com.rmt.www.service.SREManageFeatureService;
import com.rmt.www.vo.FeatureArtifact;


public class UpdateFeatureAction extends ActionSupport{
	public int aid;
	private SREManageFeatureService SREManageFeatureService;
	private FeatureArtifact artifact;
	
	public SREManageFeatureService getSREManageFeatureService() {
		return SREManageFeatureService;
	}
	public void setSREManageFeatureService(
			SREManageFeatureService sREManageFeatureService) {
		SREManageFeatureService = sREManageFeatureService;
	}
	
	public FeatureArtifact getArtifact() {
		return artifact;
	}
	public void setArtifact(FeatureArtifact artifact) {
		this.artifact = artifact;
	}

	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}
	
	public String execute(){
		artifact=SREManageFeatureService.getFeatureArtifactById(aid);
		return "success";
	}
}
